#!/bin/bash
cd /home/ulss/project/ulss-data-dispatcher
. ~/.bash_profile

( java -Xms2000m -Xmx2000m -Xmn1200m -Xss256k -XX:SurvivorRatio=6 -XX:+UseParNewGC -XX:ParallelGCThreads=8 -XX:MaxTenuringThreshold=100 -XX:+UseConcMarkSweepGC -XX:+CMSScavengeBeforeRemark -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=8 -XX:+PrintGCDateStamps -XX:+PrintGCDetails  -verbose:gc -Xloggc:./gc.log  \
                      -Djava.rmi.server.hostname=10.52.186.53 \
                      -Dcom.sun.management.jmxremote.port=20901 \
                      -Dcom.sun.management.jmxremote.ssl=false \
                      -Dcom.sun.management.jmxremote.authenticate=false \
		      -XX:+HeapDumpOnOutOfMemoryError \
                      -XX:OnOutOfMemoryError="sh stop.sh" \
                      -jar dist/ulss-1xx-monitor.jar & )
